package JavaCodePublicClass.Windows登录;

import java.util.Scanner;

public class Windows登录页 {
    public static void main (String []args)
    {
        System.out.println("欢迎使用Windows操作系统");
        System.out.println("请输入用户名:");
        String username=new Scanner(System.in).nextLine();
        if (username.equals("root")){
        System.out.print("登陆成功！");
    }else
        {
            System.out.print("请重新检查用户名");return;
        }
        System.out.println("请输入密码:");
        String password =new Scanner(System.in).nextLine();
        if (username.equals("root")&&password.equals("123"))
        {
            System.out.print("登陆成功！");
        }else
        {
            System.out.print("请重新检查用户名或密码！");
        }
    }
}